{% extends "bases/base-left.html" %}
{% block title %}
    {{ data.title }}
{% endblock %}

<!--地图坐标-->
{% block page-map-name %}
    <li><a href="/cmdb/index/" ><i class="fa fa-dashboard"></i>Home</a></li>
    <li><a href="/cmdb/hosts/" ><i class="fa fa-dashboard"></i>主机管理</a></li>
    <li class="active"><i class="fa fa-dashboard"></i>{{ data.title }}</li>
{% endblock %}

<!--表头信息--〉
{% block page-title %}
    主机管理
{% endblock %}

<!--副标题--〉
{% block page-title-sm %}
    {{ data.title }}
{% endblock %}



{% block page-rcontent %}
    {% if status %}
        <form class="form-horizontal" method="post" novalidate>
            {% csrf_token %}
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">主机名</label>
                <div class="col-sm-5">
                    {{ data.form.Name }} <span style="color:red;">{{ form.errors.Name.0 }}</span>
                </div>
            </div>
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">IP</label>
                <div class="col-sm-5">
                    {{ data.form.IP }} <span style="color:red;">{{ form.errors.Name.0 }}</span>
                </div>
            </div>
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">CPU</label>
                <div class="col-sm-5">
                    {{ data.form.CPU }} <span style="color:red;">{{ form.errors.Name.0 }}</span>
                </div>
            </div>
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">Mem</label>
                <div class="col-sm-5">
                    {{ data.form.Mem }} <span style="color:red;">{{ form.errors.Name.0 }}</span>
                </div>
            </div>
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">所属业务</label>
                <div class="col-sm-5">
                    {{ data.form.callCircuit_id }} <span style="color:red;">{{ form.errors.Name.0 }}</span>
                </div>
            </div>
            <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">保 存</button>
                <button type="button" class="btn btn-warning">
                    <a href="{{ request.session.get_url }}">返 回</a>
                </button>
            </div>
        </div>
        </from>
    {% endif %}
{% endblock %}